package com.gcxy.entity;

import com.baomidou.mybatisplus.annotation.*;

import com.gcxy.service.DataDicValService;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author hy
 * @since 2023-08-16
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("data_dic_val")
public class DataDicVal implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ddv_id", type = IdType.AUTO)
    private Integer ddvId;


    @NotNull(message = "数据类型不能为空", groups = {DataDicValService.class})
    private Integer dicId;

    @NotBlank(message = "数据值不能为空", groups = {DataDicValService.class})
    @NotNull(message = "数据值不能为空", groups = {DataDicValService.class})
    private String value;



    private Integer ddvState;

    private String ddvName;

    private Integer platform;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
